<%--
    Document   : nuevo
    Created on : 19/09/2009, 02:27:59 PM
    Author     : Freddy
--%>

<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>

<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Gesti&oacute;n de Garant&iacute;as Prendarias</title>
        </head>
        <body>
            <h1>Gesti&oacute;n de Garant&iacute;as Prendarias</h1>
            <h2>Registrar Garant&iacute;as Prendarias</h2>
            <h:messages showDetail="true" />
            <h:form>
                <fieldset>
                    <legend>Registrar Garant&iacute;as Prendarias</legend>
                    <h:panelGrid columns="1">
                        <h:panelGrid columns="6">
                            <h:outputLabel value="Codigo Garantia" for="codGarantia"/>
                            <h:inputText id="codGarantia" value="" readonly="true"/>

                            <h:outputLabel value="Cobertura" for="Cobertura"/>
                            <h:selectOneMenu id="Cobertura" value="#{GarantiaController.garantiaPrendaria.cobertura}">
                                <f:selectItem itemValue="1" itemLabel="Especifica" />
                                <f:selectItem itemValue="2" itemLabel="General" />
                            </h:selectOneMenu>

                            <h:outputLabel value="Tipo Prenda" for="TipoPrenda"/>
                            <h:selectOneMenu id="TipoPrenda" value="#{GarantiaController.garantiaPrendaria.tipoprenda}">
                                <f:selectItem itemValue="1" itemLabel="Medio de Transporte" />
                                <f:selectItem itemValue="2" itemLabel="Agricola" />
                            </h:selectOneMenu>
                        </h:panelGrid>
                    </h:panelGrid>
                </fieldset>
                <fieldset>
                    <legend>Datos Cliente</legend>
                    <h:panelGrid columns="1">
                        <h:panelGrid columns="6">
                            <h:outputLabel value="CodCliente" for="codCliente"/>
                            <h:inputText id="codCliente" value="" readonly="true"/>
                            <h:commandButton id="btnBuscarCliente" value="..." />

                            <h:panelGroup/><h:panelGroup/><h:panelGroup/>

                            <h:outputLabel value="DNI" for="txtDNI"/>
                            <h:inputText id="txtDNIE" value="" readonly="true"/>

                            <h:panelGroup/><h:panelGroup/><h:panelGroup/><h:panelGroup/>

                            <h:outputLabel value="Nombre: " for="nomCliente"/>
                            <h:inputText id="nomCliente" value="Tatiana" readonly="true"/>
                            <h:outputLabel value="Apellido Paterno: " for="apepatCliente"/>
                            <h:inputText id="apepatCliente" value="Zorrilla" readonly="true"/>
                            <h:outputLabel value="Apellido Materno: " for="apematCliente"/>
                            <h:inputText id="apematCliente" value="Rodriguez" readonly="true"/>
                        </h:panelGrid>
                    </h:panelGrid>
                </fieldset>
                <h:panelGrid columns="2">
                    <h:commandButton value="Volver" action="volver" />
                    <h:commandButton value="Continuar" action="continuar" />
                </h:panelGrid>
            </h:form>
        </body>
    </html>
</f:view>